<?
require_once("classes/configura.php");
if ((!session_is_registered("login")) or ($_SESSION['valida']<>"asd0jsdfji07ij@-0_djf-657asd"))
{$ok = false;
}else{$ok = true; }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/webcosts.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<SCRIPT language=JavaScript src="classes/menu.js"></SCRIPT>
<!-- InstanceBeginEditable name="doctitle" -->
<title>:.WebCosts .: Sistema ...</title>
<script language="JavaScript" type="text/javascript">
 function setFocus(){document.logon.login.focus();}
</script>
<? $onLoad="";
if ($ok == false){$onLoad="setFocus()";}?>
<link rel="stylesheet" href="estilos/estilo.css" type="text/css" />
<!-- InstanceEndEditable -->
</head>
<body onLoad="<?=$onLoad?>">
<div id=tudo>
	<div id=topo>
    <H1><B class=destaque>WebCosts</B> - Controle de Custos</H1>
  </div>
  <div id=nav>
	<? if ($ok == true)@require("menu.php");?>
	</div>
	<div id=principal>
	<!-- InstanceBeginEditable name="conteudo" -->
	 <P>&nbsp;</P>
		<div id=apoio class=fixo>
		<div align="left">
			<? if ($ok == false){ ?>
					<form name="logon" method="post" action="login/logon.php">
					 <B class=destaque>Usu&aacute;rio:</B>
					 <input name="login" type="text" size="10"><br>
					 <B class=destaque>Senha:</B>&nbsp;
					 <input name="senha" type="password" size="11">
					 <input type="submit" name="Submit" value="Entrar">
					</form>
		   <?
			  } else{			   
			   print('<center><font color=#666666 size=2 face=Verdana><strong>Conectado:</strong></font><br><font color=#ED290E size=3 face=verdana>'.$login.'</font><br><a href="login/logoff.php">Desconectar</a></center>');
				echo '<hr width="98%" color="#F0F3F8">'; 
			 }	
		   ?>
		   </div>
		</div>
	  <P>&nbsp;</P>
	<!-- InstanceEndEditable -->
	</div>
	<div id=rodape>
	<P><B class=destaque>WebCosts.: </B>Implementa&ccedil;&atilde;o Grupo Porreta II.</P>
  </div>
</div>
</body>
<!-- InstanceEnd --></html>
